import http from '../util/requestHttp'

export default{
    login(user){
        return http.post("/user/login",user);
    },
    logout(searchInfo){
        return http.get(`/topic/selectTopicByLike/${searchInfo}`)
    },
    updateInfo(user){
        return http.put(`/user/update`,user)
    },
    register(user){
        return http.post(`/user/register`,user)
    }
}